home *** CD-ROM | disk | FTP | other *** search
/ Aminet 15 / Aminet 15 - Nov 1996.iso / Aminet / dev / basic / ace24dist.lha / ace24.lha / include / Exec / io.h < prev    next >
C/C++ Source or Header  |  1996-09-10  |  2KB  |  84 lines

  1. #ifndef EXEC_IO_H
  2. #define EXEC_IO_H 1
  3. /*
  4. ** io.h for ACE Basic
  5. **
  6. ** Note: Translated to ACE by ConvertC2ACE
  7. **       @ MapMeadow Software, Nils Sjoholm
  8. **
  9. **
  10. ** Date: 09/02/95
  11. **
  12. **
  13. */
  14.  
  15. /*
  16. ** This are the StructPointer defines for io.h
  17. */
  18. #ifndef IORequestPtr
  19. #define IORequestPtr ADDRESS
  20. #endif
  21. #ifndef IOStdReqPtr
  22. #define IOStdReqPtr ADDRESS
  23. #endif
  24. /*
  25. ** End of StructPointer defines for io.h
  26. */
  27.       
  28. #ifndef EXEC_PORTS_H
  29. #include <exec/ports.h>
  30. #endif /* EXEC_PORTS_H */
  31.  
  32. #ifndef DevicePtr
  33. #define DevicePtr ADDRESS
  34. #endif
  35. #ifndef UnitPtr
  36. #define UnitPtr ADDRESS
  37. #endif
  38.  
  39.  
  40. STRUCT IORequest  
  41.     _Message io_Message 
  42.     DevicePtr  io_Device      /* device node pointer  */
  43.     UnitPtr  io_Unit        /* unit (driver private)*/
  44.     SHORTINT   io_Command      /* device command */
  45.     BYTE    io_Flags 
  46.     BYTE    io_Error            /* error or warning num */
  47. END STRUCT 
  48.  
  49. STRUCT IOStdReq  
  50.     _Message io_Message 
  51.     DevicePtr  io_Device      /* device node pointer  */
  52.     UnitPtr  io_Unit        /* unit (driver private)*/
  53.     SHORTINT   io_Command      /* device command */
  54.     BYTE    io_Flags 
  55.     BYTE    io_Error            /* error or warning num */
  56.     LONGINT   io_Actual           /* actual number of bytes transferred */
  57.     LONGINT   io_Length           /* requested number bytes transferred*/
  58.     ADDRESS    io_Data             /* points to data area */
  59.     LONGINT   io_Offset           /* offset for block structured devices */
  60. END STRUCT 
  61.  
  62. /* library vector offsets for device reserved vectors */
  63. #define DEV_BEGINIO (-30)
  64. #define DEV_ABORTIO (-36)
  65.  
  66. /* io_Flags defined bits */
  67. #define IOB_QUICK   0
  68. #define IOF_QUICK   (1)
  69.  
  70.  
  71. #define CMD_INVALID 0
  72. #define CMD_RESET   1
  73. #define CMD_READ    2
  74. #define CMD_WRITE   3
  75. #define CMD_UPDATE  4
  76. #define CMD_CLEAR   5
  77. #define CMD_STOP    6
  78. #define CMD_START   7
  79. #define CMD_FLUSH   8
  80.  
  81. #define CMD_NONSTD  9
  82.  
  83. #endif  /* EXEC_IO_H */
  84.